package pattern.Composite;

import java.util.ArrayList;

/**
 * Dictionary
 * Create on 2017/5/10
 *
 * @author Asin Liu
 * @version 1.0
 */
public class Dictionary {

    // 字典里面有好多单词
    private ArrayList<String> allWords;

    public Dictionary(ArrayList<String> allWords) {
        this.allWords = allWords;
    }

    // 获取字典中所有单词
    public ArrayList<String> getAllWords() {
        return this.allWords;
    }
}
